package com.googlecode.lightest.core

class ConfigurationTest extends GroovyTestCase {
    def configuration
    def builder
    
    @Override
    void setUp() {
        super.setUp()
        configuration = new Configuration()
        builder = new NodeBuilder()
    }
    
    void testSetReporter() {
        def className = 'com.googlecode.lightest.core.LightestReporter'
        def config = builder {
            reporter (class: className)
        }
        
        configuration.setReporter(config)
        
        assertEquals(className, configuration.reporter.class.name)
    }
}